"""
pizzas=['liali','margherita','pepperoni']
for p in pizzas:
    print(p)
    if p=='liali':
        print(f"l like{p}pizza")
    elif p=='margherita':
        print(f"l like{p}pizza")
    else:
        print(f"l like{p}pizza")
print("l really love pizza")

animals=['dog','cat','rabbit']
for a in animals:
    print(a)
    if a=='dog':
        print(f"{a}is my favorite pet")
    elif a=='cat':
        print(f"{a}is my favorite pet")
    else: 
        print(f"{a}is my favorite pet")
print("all these animals are my favorite pets")
#4.3作业：
for value in range(1,21):
    print(value)
#4.4作业：
numbers=list(range(1,1000001))
for number in numbers:
    print(number)
#4.5作业：
numbers_1=list(range(1,1000001))
print(min(numbers_1))
print(max(numbers_1))
print(sum(numbers_1))

#4.6作业：
odd_numbers=list(range(1,21,2))
for odd_number in odd_numbers:
    print(odd_number)
#4.7作业：
number_3=list(range(3,31,3))
for number3 in number_3:
    print(number3)
#4.8作业：
list_3=[]
for x in range(1,11):
    list_3.append(x**3)
    print(x**3)
#4.9作业：
list_4=[number**3 for number in range(1,11)]
#4.10作业：
print("The first three items in the list are:")
print(list_3[:3])
print("Three items from the middle of the list are:")
print(list_3[4:7])
print("The last three items in the list are:")
print(list_3[-3:])
#4.11作业：
pizzas=['liali','margherita','pepperoni']
friend_pizzas=pizzas[:]
pizzas.append('asdf')
friend_pizzas.append('qwer')
print("My favorite pizzas are:")
for pizza in pizzas:
    print(pizza)
print("My friend's favorite pizzas are:")
for friend_pizza in friend_pizzas:
    print(friend_pizza)
#4.12作业：
my_foods=['pizza','falafel','carrot cake']  
for food in my_foods:
    print(food)
friend_foods=my_foods[:]
for friend_food in friend_foods:
    print(friend_food)
    """
#4.13作业：
menu=('pizza','falafel','carrot cake','cannoli','ice cream')
for food in menu:
    print(food) 
menu=('pizza','falafel','carrot cake','asdf','zxcv')
for food in menu:
    print(food)
